def f3():
    print("---f3()start----")
    print(10 / 0)
    print("---f3()end----")

def f2():
    print("---f2()start---")
    try:
        f3()
    except Exception as e:
        print(f"ok{e}")
    print("---f2()end---")

def f1():
    try:
        f2()
    except Exception as e:
        print(f"f1()捕获异常->{e}")

f1()

# ---f2()start---
# print("---f3()start----")
# print(f"ok{e}")
# print("---f2()end---")

